package com.egitim.cati;
 
 

import org.apache.wicket.markup.html.WebPage; 
import org.apache.wicket.IClusterable;
import  org.apache.wicket.PageParameters; 
import com.egitim.panels.LeftPanel;
import com.egitim.panels.MakaleRightPanel;
import com.egitim.panels.RightPanel;
 
 
 public class Makale extends WebPage implements IClusterable{
 

    
	public Makale(PageParameters parameters){
		//En dıştaki border.
		NavomaticBorder navomaticBorder=new NavomaticBorder("navomaticBorder");
		   
		   
            
	     
		    
	        LeftPanel leftPanel=new LeftPanel("leftPanel");
		    navomaticBorder.add(leftPanel);
		
		    Long etiketId=parameters.getAsLong("etiketId");
		    MakaleRightPanel indexRightPanel=new MakaleRightPanel("tempContainer", etiketId);
		    RightPanel rightPanel=new RightPanel("rightPanel", indexRightPanel);
		    navomaticBorder.add(rightPanel);
		
		
		//Border'in kendisi de, Index sayfasina ekleniyor.
	    
		add(navomaticBorder);
	    
	    
	}
	 

		 

		  

		 

}